package com.botao.tip.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.botao.tip.entity.Product;
import com.botao.tip.entity.Purchase;

import java.util.List;
import java.util.Map;

/**
 * @author : vip865047755@126.com
 * @version :JDK1.8
 * @date : 2020-12-03 16:44
 * @File : ProductService.java
 * @software: IntelliJ IDEA
 */
public interface ProductService extends IService<Product> {


    /**
     * 根据id更新商品表
     *
     * @param id
     * @param product
     * @param manufacturer
     * @param inventory
     * @param state
     * @param money
     * @return
     */
    boolean updateProduct(String id, String product, String manufacturer, String inventory, String state, String money);


    /**
     * 新增商品
     *
     * @param product
     * @param manufacturer
     * @param inventory
     * @return
     */
    Boolean insert(String product, String manufacturer, String inventory, String state, String money);


}
